﻿@using DotNet.Edu.Service
@model PageList<PeriodDetails>
@{
    Layout = null;
}
@foreach (var record in Model)
{
    <li>
        <a href="@Url.Action("PeriodDetailsDetails", new {id = record.Id})" class="item-link item-content">
            <div class="item-inner">
                <div class="item-title-row">
                    <div class="item-title">@EduService.Courseware.GetName(record.CoursewareId)</div>
                    <div class="item-after">@DateTimeHelper.GetTimeStringHMS(record.Period)</div>
                </div>
                <div class="item-subtitle">
                    @record.IPAddress
                </div>
                <div class="item-text">
                    <span class="color-success">
                        @if (record.StudyCategory.Equals("pc"))
                        {
                            <i class="fa fa-television"></i> <span>计算机</span>
                        }
                        else
                        {
                            <i class="fa fa-mobile fa-lg"></i> <span>移动设备(<span class="color-success">@record.StudyCategory</span>)</span>
                        }
                    </span>
                </div>
            </div>
        </a>
    </li>
}